package com.gurumades.triggers.client;

public class StandardComparator implements TriggerChangeComparator{
	
	private static StandardComparator instance = new StandardComparator();
	
	@Override
	public boolean compareValues(Object value, Object value2) {
		if (value == null && value2 != null) {
			return false;
		}else if (value2 == null) {
			return false;
		}
		
		return value.equals(value2);
	}
	
	public static TriggerChangeComparator instance(){
		return instance;
	}
}
